<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function alertMSG() {
            alert("超链接调用函数！");
        }
    </script>
</head>
<body>
<a href="javascript:alertMSG()">函数调用</a>
</body>
</html>